package com.zx.platform.service;

import java.util.List;
import java.util.Map;

import com.zx.map.service.model.ShareProfitTypeModel;
import org.springframework.dao.DataAccessException;

import com.zx.platform.service.domain.DirectoryModel;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 14-3-1
 * Time: 上午11:06
 * To change this template use File | Settings | File Templates.
 */
public interface DirectoryService {

    public String addDirectory(DirectoryModel directoryModel) throws DataAccessException;

    public void updateDirectory(DirectoryModel directoryModel) throws DataAccessException;

    public Map getDirectory(int pageSize, int pageNum, DirectoryModel directoryModel) throws DataAccessException;

    public void deleteDirectory(DirectoryModel directoryModel) throws DataAccessException;

    public DirectoryModel getDirectory(DirectoryModel directoryModel)throws DataAccessException;

    public List getDirectoryList() throws DataAccessException;
    
    public List getDirectoryListByKey(String key) throws DataAccessException;
    
    public DirectoryModel getModelById(DirectoryModel directoryModel)throws DataAccessException;
    /**
     * 类似于系统参数功能
     * add by wenjw 
     * @return
     * @throws DataAccessException
     */
    public String getValueByKeyAndCaption(String key,String dirCaption)throws DataAccessException;
    
    /**
     * 类似于系统参数功能
     * add by wenjw 
     * @return
     * @throws DataAccessException
     */
	public String getCaptionByKeyAndValue(String key, String value);

    /**
     * 获取分润名字
     * @param spDetailType
     * @return
     */
	String getShareProfitTypeNameByType(String spDetailType);

    /**
     * 获取分润级别列表
     * @return
     */
    List<ShareProfitTypeModel> getShareProfitType();
}
